package com.wjc.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

public class MemberCourseDto {

    /**
     * id
     */
        private Long id;
    /**
     * 会员id
     */
        
        @NotBlank(message = "会员id不能为空")
        
        private Long memberId;
    /**
     * 课程id
     */
        
        @NotBlank(message = "课程id不能为空")
        
        private Long courseId;
    /**
     * 报名时间
     */
        @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
        @NotBlank(message = "报名时间不能为空")
        
        private Date at;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Date getAt() {
        return at;
    }

    public void setAt(Date at) {
        this.at = at;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", courseId=").append(courseId);
        sb.append(", at=").append(at);
        sb.append("]");
        return sb.toString();
    }

}